<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="modal-dialog ms-modal-dialog" style="margin-top:50px;">
	<div class="modal-content">

		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title">${projectPhase.project.name}-第<c:out value="${projectPhase.phase}"/>期 评估问卷生成成功（${traineeCount}份）</h4>
			<br>
			<h4 class="modal-title"> 填写链接：</h4>
			
			<div class="row" style="text-align: center;">
				<div id="qrcode"></div>
				<a href="${ctx.host}/survey?id=${projectPhase.id}" id="home_taining_com" target="_new"></a>
			</div>

		</div>

		<div class="modal-footer">
			<button type="button" class="btn btn-shadow-default btn-shadow umu-btn" data-dismiss="modal">关闭</button>
		</div>

	</div>
</div>

<script>
	var url = window.__CTX__.rootDomain + '/survey?id=${projectPhase.id}';
	$("#home_taining_com").text(url);
	jQuery(function() {

		jQuery('#qrcode').qrcode({
			width: 100,
			height: 100,
			text: url
		});
	})
</script>